import face_recognition
known_image_tdw = face_recognition.load_image_file("../step3/know_image/tdw.jpg")
known_image_xy = face_recognition.load_image_file("../step3/know_image/xy.jpg")
known_image_zys = face_recognition.load_image_file("../step3/know_image/zys.jpg")
known_image_cyz = face_recognition.load_image_file("../step3/images/cyx2.jpg")

unknown_image = face_recognition.load_image_file("../step3/images/cyx3.jpg")

tdw_encoding = face_recognition.face_encodings(known_image_tdw)[0]
xy_encoding = face_recognition.face_encodings(known_image_xy)[0]
zys_encoding = face_recognition.face_encodings(known_image_zys)[0]
cyz_encoding = face_recognition.face_encodings(known_image_cyz)[0]

unknown_encoding = face_recognition.face_encodings(unknown_image)[0]

results = face_recognition.compare_faces([tdw_encoding, xy_encoding, zys_encoding, cyz_encoding], unknown_encoding, tolerance=0.4)

print(results)
